Eclipse Platform
Pre-release 3.0

org.eclipse.team.ui.synchronize.actions
Class SyncInfoSet

java.lang.Object
  extended byorg.eclipse.team.ui.synchronize.actions.SyncInfoSet

public class SyncInfoSet
extends Object

Convenience class for manipulating and searching sets of SyncInfo instances.

Since:
3.0
See Also:
SyncInfoFilter

Constructor Summary
SyncInfoSet(SyncInfo[] infos)
           
 
Method Summary
 void addAll(SyncInfoSet set)
           
 SyncInfo getNodeFor(IResource resource)
           
 SyncInfo[] getNodes(SyncInfoFilter filter)
          Return all nodes in this set that match the given filter
 IResource[] getResources()
          Returns the resources from all the nodes in this set.
 SyncInfo[] getSyncInfos()
           
 boolean hasAutoMergeableConflicts()
          Returns true if this sync set has auto-mergeable conflicts.
 boolean hasConflicts()
          Returns true if there are any conflicting nodes in the set, and false otherwise.
 boolean hasIncomingChanges()
          Returns true if this sync set has incoming changes.
 boolean hasNodes(SyncInfoFilter filter)
          Indicate whether the set has nodes matching the given filter
 boolean hasOutgoingChanges()
          Returns true if this sync set has outgoing changes.
 boolean isEmpty()
           
 void rejectNodes(SyncInfoFilter filter)
          Removes all nodes from this set that match the given filter
 void removeConflictingNodes()
          Removes all conflicting nodes from this set.
 void removeIncomingNodes()
          Removes all incoming nodes from this set.
 void removeNonMergeableNodes()
          Removes all nodes from this set that are not auto-mergeable conflicts
 void removeOutgoingNodes()
          Removes all outgoing nodes from this set.
 void removeResources(IResource[] resources)
           
 void selectNodes(SyncInfoFilter filter)
          Removes all nodes from this set that do not match the given filter
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncInfoSet

public SyncInfoSet(SyncInfo[] infos)
Method Detail

hasConflicts

public boolean hasConflicts()
Returns true if there are any conflicting nodes in the set, and false otherwise.


hasIncomingChanges

public boolean hasIncomingChanges()
Returns true if this sync set has incoming changes. Note that conflicts are not considered to be incoming changes.


hasOutgoingChanges

public boolean hasOutgoingChanges()
Returns true if this sync set has outgoing changes. Note that conflicts are not considered to be outgoing changes.


hasAutoMergeableConflicts

public boolean hasAutoMergeableConflicts()
Returns true if this sync set has auto-mergeable conflicts.


removeConflictingNodes

public void removeConflictingNodes()
Removes all conflicting nodes from this set.


removeOutgoingNodes

public void removeOutgoingNodes()
Removes all outgoing nodes from this set.


removeIncomingNodes

public void removeIncomingNodes()
Removes all incoming nodes from this set.


removeNonMergeableNodes

public void removeNonMergeableNodes()
Removes all nodes from this set that are not auto-mergeable conflicts


hasNodes

public boolean hasNodes(SyncInfoFilter filter)
Indicate whether the set has nodes matching the given filter


selectNodes

public void selectNodes(SyncInfoFilter filter)
Removes all nodes from this set that do not match the given filter


rejectNodes

public void rejectNodes(SyncInfoFilter filter)
Removes all nodes from this set that match the given filter


getNodes

public SyncInfo[] getNodes(SyncInfoFilter filter)
Return all nodes in this set that match the given filter


getSyncInfos

public SyncInfo[] getSyncInfos()

getResources

public IResource[] getResources()
Returns the resources from all the nodes in this set.


isEmpty

public boolean isEmpty()

removeResources

public void removeResources(IResource[] resources)

size

public int size()

getNodeFor

public SyncInfo getNodeFor(IResource resource)

addAll

public void addAll(SyncInfoSet set)

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.